﻿<UserControl x:Class="My.CodePlex.TFSExplorer.Controls.HistoryViewControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:local="clr-namespace:My.CodePlex.TFSExplorer"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Grid>
        <ListView Name="SourceHistoryView" Grid.Row="1"
                VirtualizingStackPanel.IsVirtualizing="True"
                local:ListViewSorter.CustomListViewSorter="My.CodePlex.TFSExplorer.ChangeSetComparer">
            <ListView.View>
                <GridView>
                    <GridViewColumn Width="Auto" Header="Changeset" DisplayMemberBinding="{Binding ChangesetId}" />
                    <GridViewColumn Width="Auto" Header="Committer" DisplayMemberBinding="{Binding Committer}"  />
                    <GridViewColumn Width="Auto" Header="CreationDate" DisplayMemberBinding="{Binding CreationDate}"  />
                    <GridViewColumn Width="Auto" Header="Comment" DisplayMemberBinding="{Binding Comment}"  />
                </GridView>
            </ListView.View>
            <ListView.ContextMenu>
                <ContextMenu x:Name="SourceHistoryViewContextMenu">
                    <MenuItem x:Name="SourceHistoryViewDetails" Header="View Changeset Details" Click="ViewChangesetDetailsClick"></MenuItem>
                    <MenuItem x:Name="SourceHistoryViewCompare" Header="Compare" Click="CompareClick"></MenuItem>
                </ContextMenu>
            </ListView.ContextMenu>
        </ListView>
    </Grid>
</UserControl>
